import request from '@/utils/request'
function getUserListByStatus() {
  return request({
    url: '/user/getUserListByStatus',
    method: 'post',
  })
}

function getUserList(data, component) {
  request.post("/user/getUserList", data).then(res => {
    console.log(res);
    console.log("component", component);
    component.list = res.data.data;
    component.total = res.data.total;
  });
}

function getUserListBySearch(data, component) {
  request.post("/user/getUserListBySearch", data).then(res => {
    console.log("component", component);
    component.list = res.data.data;
    component.total = res.data.total;
  });
}

export {
  getUserListByStatus,
  getUserListBySearch,
  getUserList
}
